﻿using System;

namespace VkontakteSharp.Model
{
    /// <summary>
    /// page – wiki страница
    /// </summary>
    public class Page : Attachment
    {
        [JsonMapping("pid", JsonMapping.MappingType.Primitive)]
        public long Id { get; set; }
        [JsonMapping("group_id", JsonMapping.MappingType.Primitive)]
        public long GroupId { get; set; }
        [JsonMapping("creator_id", JsonMapping.MappingType.Primitive)]
        public long CreatorId { get; set; }
        [JsonMapping("title", JsonMapping.MappingType.Primitive)]
        public string Title { get; set; }
        [JsonMapping("source", JsonMapping.MappingType.Primitive)]
        public string Source { get; set; }
        [JsonMapping("current_user_can_edit", JsonMapping.MappingType.Primitive)]
        public bool CurrentUserCanEdit { get; set; }
        [JsonMapping("current_user_can_edit_access", JsonMapping.MappingType.Primitive)]
        public bool CurrentUserCanEditAccess { get; set; }
        [JsonMapping("who_can_view", JsonMapping.MappingType.Primitive)]
        public int WhoCanView { get; set; } // todo int -> enum
        [JsonMapping("who_can_edit", JsonMapping.MappingType.Primitive)]
        public int WhoCanEdit { get; set; } // todo int -> enum
        [JsonMapping("editor_id", JsonMapping.MappingType.Primitive)]
        public long EditorId { get; set; }
        [JsonMapping("edited", JsonMapping.MappingType.Primitive)]
        public DateTime Edited { get; set; }
        [JsonMapping("created", JsonMapping.MappingType.Primitive)]
        public DateTime Created { get; set; }
        [JsonMapping("parent", JsonMapping.MappingType.Primitive)]
        public string Parent { get; set; }
        [JsonMapping("parent2", JsonMapping.MappingType.Primitive)]
        public string Parent2 { get; set; }
    }
}